package io.renren.wechat.support;

public class NotifyResponseUtils {
    public static final String SUCCESS_XML_RESPONSE = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";
    private static final String FAIL_XML_RESPONSE_TEMPLATE = "<xml><return_code><![CDATA[FAIL]]></return_code><return_msg><![CDATA[%s]]></return_msg></xml>";

    public static String fail(String failMsg) {
        return String.format(FAIL_XML_RESPONSE_TEMPLATE, failMsg);
    }
}
